/*
 * @Descripttion: 说明
 * @version: V1.0
 * @Author: GaoWei
 * @Date: 2021-04-25 12:11:55
 * @LastEditors: GaoWei
 * @LastEditTime: 2021-06-18 09:08:18
 */
import { axios } from "../../utils/request";

const api = {
    List: "/in/inventoryClass/getInventoryClassList",
    Save: "/in/inventoryClass/save",
    DELETE: "/in/inventoryClass/delete",

    CategoryList: "/in/inventoryCategory/getInventoryCategoryList",//存货分类列表
};


/**
* 获取物料分类设置列表
*/
export function list(parameter) {
    return axios({
        url: api.List,
        method: "get",
        params: parameter,
        timeout: 500000,
    });
}


/**
 * 新增/修改物料分类设置
 * @param {*} data
 */
export function save(data) {
    console.log(data);
    return axios({
        url: api.Save,
        method: "post",
        data: data
    });
}

/**
 * 删除物料分类设置
 */
export function deleteInventoryClass(data) {
    return axios({
        url: api.DELETE,
        method: "get",
        params: data
    });
}
/**
 * 存货分类
 */
export function categoryList(data) {
    return axios({
        url: api.CategoryList,
        method: "get",
        params: data
    });
}